package com.calvin.study.classloader;

import java.io.ObjectInputStream.GetField;

//类加载
public class ClassLoaderTest01 {

	private int p1 = getValue1();

	private static int p2 = getValue2();

	public ClassLoaderTest01() {
		System.out.println("我是父类构造器");
	}

	static {
		System.out.println("我是父类静态代码块1");
	}
	static {
		System.out.println("我是父类静态代码块2");
	}

	{
		System.out.println("我是父类代码块1");
	}

	{
		System.out.println("我是父类代码块2");
	}

	private int getValue1() {
		System.out.println("我是父类成员变量p1");
		return 1;
	}

	private static int getValue2() {
		System.out.println("我是父类静态成员变量p2");
		return 2;
	}
}
